//
//  HashrateTeamell.m
//  WalletAPP
//
//  Created by 罗弟祥 on 2019/10/10.
//  Copyright © 2019 罗弟祥. All rights reserved.
//

#import "HashrateTeamCell.h"

@implementation HashrateTeamCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)loadData:(HashrateModel *)model indexPath:(NSIndexPath *)indexPath{
    self.titleL.text = model.type;
    self.valueL.text = [NSString stringWithFormat:@"%@ ,%@", model.tg, model.type];
    self.hashrateL.text = model.hashrate;
    
    if (indexPath.row < 3) {
        _icoImgV.image = IMAGE(@"icon_hash_hui");
        self.valueL.textColor = [UIColor whiteColor];
        self.hashrateL.textColor = DEF_0xColor(0xffffff, 1);

    }else{
        _icoImgV.image = IMAGE(@"icon_hash_shui");
        self.valueL.textColor = [UIColor blackColor];
        self.hashrateL.textColor = DEF_0xColor(0x9EA9C3, 1);

    }
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
